﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAPICodePack.ApplicationServices;

namespace BaseLibrary.Power
{
    public class PowerEventArgs : EventArgs
    {
        public PowerEventArgs()
            : base()
        {
            
        }

        public BatteryState BatteryState
        {
            get { return PowerManager.GetCurrentBatteryState(); }
        }

        public bool IsUpsPresent
        {
            get { return PowerManager.IsUpsPresent; }
        }

        public PowerPersonality PowerPersonality
        {
            get { return PowerManager.PowerPersonality; }
        }

        public PowerSource PowerSource
        {
            get { return PowerManager.PowerSource; }
        }

        public bool IsBatteryShortTerm
        {
            get { return PowerManager.IsBatteryShortTerm; }
        }

        public bool IsBatteryPresent
        {
            get { return PowerManager.IsBatteryPresent; }
        }

        public int BatteryLifePercent
        {
            get { return PowerManager.BatteryLifePercent; }
        }

        

    }
}
